# Maintainer: Jelle van der Waa <jelle@archlinux.org>

pkgname=bandit
pkgver=1.7.5
pkgrel=4
pkgdesc='Python security linter from OpenStack Security'
arch=('any')
url='https://github.com/PyCQA/bandit'
license=('Apache')
depends=('python-yaml' 'python-stevedore' 'python-six' 'python-pbr' 'python-gitpython' 'python-rich')
makedepends=('python-setuptools' 'git')
source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('81b93654ba62e6d22e8c2d534b9f575979bad4f66acd90c221d214316cd1863e7c7e179b8e2a2a8fa80034db71ebda8636adb25b36e1827194bb4639e67ada09')

build() {
    cd bandit-$pkgver
    python setup.py build
}

package() {
    cd bandit-$pkgver
    python setup.py install --root="$pkgdir" --skip-build --optimize=1
}
